<?php
header ( 'Content-Type:text/html;charset=gbk' );
require_once ("db_manage.php");
$commentid = $_POST ['modify_comment_id'];
$content = $_POST ['modify_comment_content'];
$travelid = $_POST ['modify_comment_travelid'];
$sql = "update pcd_comment set comment = '" . nl2br ( $content ) . "' where id = " . $commentid;
mysql_query ( $sql );
echo "<script>location.href='travel_detail.php?id=" . $travelid . "';</script>";
?>